<template>
    <div class="out-box">
      <div class="content-ab">
        <div class="nav-content">
          <div class="left-font">#WORK</div>
          <div class="nav-list">
            <div class="nav-item" :class="selectIndex=='1'?'nav-item-active':''" @click="navClick('1')">全部案例</div>
            <div class="nav-item" :class="selectIndex=='2'?'nav-item-active':''" @click="navClick('2')">服务类型</div>
            <div class="nav-item" :class="selectIndex=='3'?'nav-item-active':''" @click="navClick('3')">客户类型</div>
          </div>
        </div>
      </div>
    </div>
  
  </template>
  
  <script>
  export default {
    props: {
       selectIndex:{
           style:String,
           default:''
       }
    },
    methods:{
      navClick(val){
        this.$emit('changeNav',val)
      }
    }
  }
  </script>
  
  <style lang="scss" scoped>
  .out-box {
    background-color: #fff;
    width: 100%;
  }
  
  .content-ab {
    width: 100%;
    margin: 0 auto;
    background-color: #fff;
    padding: 30rem 3.2rem 15rem;
    width: 100%;
  }
  
  .nav-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
  }
  
  .left-font {
    font-size: 10rem;
    font-family: "BebasFontEnB";
  }
  
  .nav-list {
    display: flex;
    align-items: center;
  }
  
  .nav-item {
    width: 15rem;
    height: 6rem;
    font-size: 3rem;
    background-color: #fff;
    font-family: "BebasFontB";
    border: 1px solid #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5rem;
    margin-right: 3rem;
    cursor: pointer;
  }
  
  .nav-item-active {
    background-color: #000000;
    color: #fff;
  }
  </style>